#pragma once

class CFastAlloc
{
protected:
	struct SAllocTableItem
	{
		u32 nBegin;
		u32	numBytes;
	};
	void				*m_pData;
	u32					m_nDataSize;
	u32					m_numReservedBytes;
	//u32					m_numTables;
	//u32					m_currTableItem;
	//bool				m_bFreedTableItem;
	//SAllocTableItem		*m_pTable;

	static CFastAlloc	*s_pAllocator;

public:
	CFastAlloc( u32 numReservedBytes );
	virtual ~CFastAlloc(void);

	static void *Alloc( u32 numBytes );


};
